home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
10,000 Great Games
/
10,000 Great Games.iso
/
Product
/
66
/
data1.cab
/
Source_Files
/
Src
/
Hurting.cpp
< prev
next >
Wrap
C/C++ Source or Header
|
2000-01-16
|
513b
|
38 lines
#include "stdafx.h"
cHurting::cHurting(int _x, int _y, cProperties *orig)
: cWeapon(_x, _y, orig, "MOVING")
{
// Set other
active_wait = 0;
circle_bounds = 0;
push_moving_direction = FALSE;
move_object_after_hit = FALSE;
}
cHurting::~cHurting()
{
}
int cHurting::control()
{
cWeapon::control();
// Hit stuff
if (!active_wait)
{
check_radial_hit_more(orig->circle);
active_wait = sec / 5;
}
// Delete when off screen
return !in_water();
}